package com.cbg.bus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cbg.base.core.SuperEntity;
import com.cbg.base.utils.UserContextHolder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenbing
 * @since 2018-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_rider")
public class Rider extends SuperEntity<Rider> {

    private static final long serialVersionUID = 1L;

    /**
     * 乘车人名字
     */
    private String name;

    /**
     * 乘车人电话
     */
    private String tel;

    /**
     * 乘车人身份证
     */
    private String idCard;

    /**
     * 用户唯一标识
     */
    private String userId;

    public String getUserId() {
        return UserContextHolder.userId();
    }
}
